package com.magicalcoder.pigeontest.service.impl;


import com.magicalcoder.pigeon.ioc.anotation.Service;
import com.magicalcoder.pigeontest.model.Person;
import com.magicalcoder.pigeontest.service.HelloService;

@Service("helloService")
public class HelloServiceImpl implements HelloService {

    @Override
    public String hello(String name) {
        return "Hello! " + name;
    }

    @Override
    public String hello(Person person) {
        return "Hello! " + person.getFirstName() + " " + person.getLastName();
    }
}
